package com.ruoyi.api.domain.recipe;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class DishEntity {

    private static final long serialVersionUID = 1L;

    /** 食谱ID */
    private Long dishId;

    /** 食谱名称 */
    private String dishName;

    /** 食谱标题 */
    private String dishTitle;

    /** 食谱顺序 */
    private Integer dishSort;

    /** 食谱描述 */
    private String dishContent;

    /** 食谱图片 */
    private String dishPic;

    /** 点赞数量 */
    private Integer likesCount;

    /** 作者 */
    private String author;

    /** 状态（0正常 1停用） */
    private String status;

    /** 是否被收藏 */
    private boolean isCollect;

    private String userId;

    /** 食谱类别ID */
    private Long categoryId;

    private int limit;

    public void setDishId(Long dishId)
    {
        this.dishId = dishId;
    }

    public Long getDishId()
    {
        return dishId;
    }

    public void setDishName(String dishName)
    {
        this.dishName = dishName;
    }

    public String getDishName()
    {
        return dishName;
    }

    public void setDishTitle(String dishTitle)
    {
        this.dishTitle = dishTitle;
    }

    public String getDishTitle()
    {
        return dishTitle;
    }

    public void setDishSort(Integer dishSort)
    {
        this.dishSort = dishSort;
    }

    public Integer getDishSort()
    {
        return dishSort;
    }

    public void setDishContent(String dishContent)
    {
        this.dishContent = dishContent;
    }

    public String getDishContent()
    {
        return dishContent;
    }

    public void setDishPic(String dishPic)
    {
        this.dishPic = dishPic;
    }

    public String getDishPic()
    {
        return dishPic;
    }

    public void setLikesCount(Integer likesCount)
    {
        this.likesCount = likesCount;
    }

    public Integer getLikesCount()
    {
        return likesCount;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public boolean getIsCollect() {
        return isCollect;
    }

    public void setIsCollect(boolean isCollect) {
        this.isCollect = isCollect;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("dishId", getDishId())
                .append("dishName", getDishName())
                .append("dishTitle", getDishTitle())
                .append("dishSort", getDishSort())
                .append("dishContent", getDishContent())
                .append("dishPic", getDishPic())
                .append("likesCount", getLikesCount())
                .append("author", getAuthor())
                .append("status", getStatus())
                .append("categoryId", getCategoryId())
                .toString();
    }
}
